<?php

// comment callback functions

function mydownloads_com_update($download_id, $total_num){
	global $mydirname;
	$db =& Database::getInstance();
	$sql = 'UPDATE '.$db->prefix($mydirname.'_downloads').' SET comments = '.$total_num.' WHERE lid = '.$download_id;
	$db->query($sql);
}

function mydownloads_com_approve(&$comment){
	// notification mail here
}

?>